<template>
  <div class="layout-container">
    <slot name="header"></slot>
    <div class="layout-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Layout'
}
</script>

<style scoped>
.layout-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: url('~/assets/pageBg.png')  no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.layout-content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}
</style>